import $ from "jquery";
import Store from "store2"
let Data = JSON.parse(Store.get("region")) || {region_id:0,parent_id:1,region_name:'全国'};
export let getData = options =>{
   return $.post(`${window.GlobalData.api.classify.getData}/goods_cate/${options.goods_cate}/name/${options.name || ""}`,options);
};

export let classifySearchWord = options =>{
  return $.get(`${window.GlobalData.api.setting.searchWord}/name/${options.text}/goods_cate/${options.cate}/page/${options.page}`)
};
